-- GENERATED SPELL FOR [Horde Silithyst Sentinel] --


function spell0_17766(pUnit, Event) --@Incapacitating Shout,Self--
pUnit:FullCastSpellOnTarget(18328,pUnit)
pUnit:RegisterEvent('Sorts_17766', 8321, 1)
end

function spell1_17766(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(19643,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17766', 5300, 1)
end

function spell2_17766(pUnit, Event) --@Snap Kick,n/a--
pUnit:FullCastSpellOnTarget(15618,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17766', 2296, 1)
end

function Sorts_17766(pUnit, Event)
local choix_sorts_17766 = math.random(0, 2)
if choix_sorts_17766 == 0 then
pUnit:RegisterEvent('spell0_17766', 1, 1)
end
if choix_sorts_17766 == 1 then
pUnit:RegisterEvent('spell1_17766', 1, 1)
end
if choix_sorts_17766 == 2 then
pUnit:RegisterEvent('spell2_17766', 1, 1)
end
end

function mob17766_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17766', math.random(1500, 3000), 1)
end

function mob17766_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17766_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17766_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17766, 1, 'mob17766_Action')
RegisterUnitEvent(17766, 2, 'mob17766_Leave')
RegisterUnitEvent(17766, 3, 'mob17766_Kill')
RegisterUnitEvent(17766, 4, 'mob17766_Die')
